package tools;

import javax.swing.*;
import java.awt.*;

public class Icons {
    private ImageIcon okImage = new ImageIcon("src/images/OK.png");
    private ImageIcon warningImage = new ImageIcon("src/images/warning.png");
    private ImageIcon errorImage = new ImageIcon("src/images/error.png");
    private ImageIcon questionImage = new ImageIcon("src/images/question.png");

    public ImageIcon getOkImage() {
        okImage.setImage(okImage.getImage().getScaledInstance(32, 32, Image.SCALE_DEFAULT));
        return okImage;
    }

    public ImageIcon getWarningImage() {
        warningImage.setImage(warningImage.getImage().getScaledInstance(32, 32, Image.SCALE_DEFAULT));
        return warningImage;
    }

    public ImageIcon getErrorImage() {
        errorImage.setImage(errorImage.getImage().getScaledInstance(32, 32, Image.SCALE_DEFAULT));
        return errorImage;
    }

    public ImageIcon getQuestionImage() {
        questionImage.setImage(questionImage.getImage().getScaledInstance(32, 32, Image.SCALE_DEFAULT));
        return questionImage;
    }
}
